package com.ruoyi.active.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.active.mapper.ActiveMapper;
import com.ruoyi.active.domain.Active;
import com.ruoyi.active.service.IActiveService;

/**
 * 活动信息Service业务层处理
 * 
 * @author author
 * @date 2024-06-30
 */
@Service
public class ActiveServiceImpl implements IActiveService 
{
    @Autowired
    private ActiveMapper activeMapper;

    /**
     * 查询活动信息
     * 
     * @param activeId 活动信息主键
     * @return 活动信息
     */
    @Override
    public Active selectActiveByActiveId(Long activeId)
    {
        return activeMapper.selectActiveByActiveId(activeId);
    }

    /**
     * 查询活动信息列表
     * 
     * @param active 活动信息
     * @return 活动信息
     */
    @Override
    public List<Active> selectActiveList(Active active)
    {
        return activeMapper.selectActiveList(active);
    }

    /**
     * 新增活动信息
     * 
     * @param active 活动信息
     * @return 结果
     */
    @Override
    public int insertActive(Active active)
    {
        return activeMapper.insertActive(active);
    }

    /**
     * 修改活动信息
     * 
     * @param active 活动信息
     * @return 结果
     */
    @Override
    public int updateActive(Active active)
    {
        return activeMapper.updateActive(active);
    }

    /**
     * 批量删除活动信息
     * 
     * @param activeIds 需要删除的活动信息主键
     * @return 结果
     */
    @Override
    public int deleteActiveByActiveIds(Long[] activeIds)
    {
        return activeMapper.deleteActiveByActiveIds(activeIds);
    }

    /**
     * 删除活动信息信息
     * 
     * @param activeId 活动信息主键
     * @return 结果
     */
    @Override
    public int deleteActiveByActiveId(Long activeId)
    {
        return activeMapper.deleteActiveByActiveId(activeId);
    }
}
